package com.base.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.base.po.voip.SelfShopCoupon;
import com.base.po.voip.SelfShopCouponExample;
import com.base.utils.Page;

public interface SelfShopCouponService {
	 int countByExample(SelfShopCouponExample example);

	 int deleteByExample(SelfShopCouponExample example);

	 int insert(SelfShopCoupon record);

	 int insertSelective(SelfShopCoupon record);

	 List<SelfShopCoupon> selectByExample(SelfShopCouponExample example);
	 
	 List<SelfShopCoupon> selectBySelfShopCoupon(@Param("parentid") String parentid, @Param("shopid") String shopid,
                                                 @Param("batch") String batch);
	 
	 List<SelfShopCoupon> selectAllSelfShopCoupon(@Param("page") Page page,
                                                  @Param("parentid") String parentid, @Param("shopid") String shopid,
                                                  @Param("batch") String batch, @Param("mobile") String mobile,
                                                  @Param("status") Byte status);
	 
	 SelfShopCoupon selectByCoupon(@Param("coupon") String coupon,
                                   @Param("parentid") String parentid, @Param("shopid") String shopid);

	 int updateByExampleSelective(@Param("record") SelfShopCoupon record, @Param("example") SelfShopCouponExample example);

	 int updateByExample(@Param("record") SelfShopCoupon record, @Param("example") SelfShopCouponExample example);
	    
	 int updateByPrimaryKeySelective(SelfShopCoupon record);
	 
	 int countAllSelfShopCoupon(@Param("parentid") String parentid, @Param("shopid") String shopid,
                                @Param("batch") String batch, @Param("mobile") String mobile,
                                @Param("status") Byte status);
}